package com.it.park.dao;

import java.util.List;
import java.util.Map;

import com.it.park.model.UserFriend;

public interface UserFriendMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserFriend record);

    int insertSelective(UserFriend record);

    UserFriend selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserFriend record);

    int updateByPrimaryKey(UserFriend record);
    
    /**
     * 查询我关注的或者关注我的
     * @param map
     * @return
     */
    List<UserFriend> selectAllFriends(Map<String,Object> map);
    
    /**
	 * 取消关注
	 * @param map
	 * @return
	 */
    int cancelAttention(Map<String,Object> map);
    
    UserFriend selectHasExists(UserFriend userFriend);
}